package top.gelonggld.constants;

/**
 * Created by gelon on 2017/5/27.
 */
public class Rex {

    public static final String VISCONTROLLER = "(((public)|(private)|(protected))\\s+)?";
    public static final String PACKAGE = "package\\s+[\\w.]+;";
    public static final String IMPORT = "import\\s+[\\w.]+;";
    public static final String BLANK_LINE = "[\\s| ]*\\r";
    public static final String CLASS_HEAD =  VISCONTROLLER + "class\\s+\\w+[^\\{]*\\{([\\S\\s]*)\\}\\s*";
    public static final String PROPERTY = "([ ]*)" + VISCONTROLLER + "(static\\s+)?(final\\s+)?(\\w+)\\s+(\\w+)\\s*;";
    public static final String ANNOTATION = "/\\*((?!\\*/).)*\\*/";
    public static final String NOTE = "@([\\w.]+)(\\(([^\\)]*)\\))?";
    public static final String CHAR_NUM = "[\\w\\d]+";
    public static final String NOTE_PROPERTY = "\\s*(\\w+)\\s*=\\s*([\\w\\s\"]+)";
    public static final String METHOD_HEAD = "(\\s*)(((public)|(private)|(protected))\\s+)?[\\w\\d]+\\s+[\\w\\d]+\\s*\\((\\s*(@(\\w+)(\\(([^\\)]*)\\)\\s)?)?\\s*[\\w\\d\\[\\]]+\\s+[\\w\\d\\[\\]]+\\s*,?)*\\)\\s*\\{";
}
